using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class examples_csharp_controls : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GMap.GoogleKey = ConfigurationManager.AppSettings["MapKey"];
        //No need to add controls with every postback, they are kept in the viewstate.
        if (!Page.IsPostBack)
        {
            GMap.Center = new Reimers.Map.GoogleLatLng(54, 0);
            GMap.MapControls.Add(new Reimers.Map.Controls.GoogleSmallMapControl("smc"));
            GMap.MapControls.Add(new Reimers.Map.Controls.GoogleSmallMapTypeControl("smtc", new Reimers.Map.Controls.GoogleControlPosition(Reimers.Map.GoogleControlAnchor.G_ANCHOR_BOTTOM_RIGHT, new Reimers.Map.GoogleSize(15, 15))));
        }
    }
}
